if there exists a subset with given sum